import request from '@/utils/request'

export function selectUserByUnitId(unitId) {
  return request({
    url: '/wa/user',
    method: 'get',
    params: { unitId }  // 传递 unitId 参数
  });
}
//添加联系人信息
export function addUser(data) {
  return request({
    url: '/wa/user',
    method: 'post',
    data: data
  })

}
export function deleteUser(userId) {
  return request({
    url: `/wa/user/${userId}`,
    method: 'delete'
  })
}
export function editUser(data) {
  return request({
    url: '/wa/user',
    method: 'put',
    data: data
  });
}
